import request from '@/utils/request'
import API from './constants'

/*
获取商品详情数据
@param {*} id
@return 详情数据
*/
export const getDetail = id => request({
  url: API.DETAIL_API,
  params: { // get 方式请求
    id
  }
})
